package com.it.security.service.impl;

import com.it.security.dao.RolerPermissionDao;
import com.it.security.service.RolerPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RolerPermissionServiceImpl implements RolerPermissionService {

    @Autowired
    RolerPermissionDao rolerPermissionDao;
    @Override
    public List<Integer> getPermissionByRolerId(Integer id) {
        return rolerPermissionDao.getPermissionByRolerId(id);
    }
}
